* {
    margin: 0;
    padding: 0;
    font-family: sans-serif;
}

/* 颜色：浅紫#6d5ed4 紫色#6556bf 黑色#20202a 深灰#242834 浅灰#2b2f3b 粉色#d6dbd9 橙色#d26f5c 浅蓝色#bfd5e3 浅肉色#d5c19c 字体#39383e 亮绿#2ecc71*/
body {
    background-color: #20202a;
}

/*  返回按钮部分  */
.back {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: xxx-large;
    font-weight: 700;
    background-color: #242834;
    color: #fff;
    text-align: center;
    line-height: 50px;
    cursor: pointer;
}

/* 闭眼小男孩部分 */
.boy {
    position: absolute;
    height: 85px;
    width: 150px;
    top: -83px;
    left: 120px;
    background: no-repeat url('/chapter12/Image/littleBoy.png'); /*这里路径需要加上 /chapter12 虽然报错，我不知道为什么== */
    background-size: contain;
}

.hand-r,
.hand-l {
    background-color: #d19c72;
    height: 20px;
    width: 20px;
    position: absolute;
    top: 70px;
    border-radius: 20px;
    transition: all 0.5s;
    transform: scaleY(0.8);
}

.hand-l {
    left: 20px;
    box-shadow: inset -2px -2px rgba(0, 0, 0, 0.1);
}

.hand-r {
    right: 28px;
    box-shadow: inset 2px -2px rgba(0, 0, 0, 0.1);
}

.hand-l-focus,
.hand-r-focus {
    background-color: #d19c72;
    height: 25px;
    width: 25px;
    position: absolute;
    border-radius: 20px;
    transition: all 0.5s;
}

.hand-l-focus {
    top: 37px;
    left: 40px;
    transform: scaleX(1.2) skew(-9deg);
    box-shadow: inset -2px -2px rgba(0, 0, 0, 0.1);
}

.hand-r-focus {
    top: 37px;
    right: 48px;
    transform: scaleX(1.2) skew(10deg);
    box-shadow: inset 2px -2px rgba(0, 0, 0, 0.1);
}

/* 登录部分 */
.login {
    position: relative;
    background-color: #242834;
    margin: 150px auto 0 auto;
    width: 400px;
    height: 300px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 10px;
}

/* 登录标题 */
.login h1 {
    color: #fff;
    font-weight: 600;
}

/* 文本框 */
input[type="text"],
input[type="password"] {
    background: none;
    display: block;
    margin: 20px auto 0;
    border: 2px solid #6d5ed4;
    text-align: center;
    width: 200px;
    padding: 10px 0;
    border-radius: 20px;
    outline: none;
    color: #fff;
    transition: all 0.5s;
}

input[type="submit"] {
    background: none;
    display: block;
    margin: 20px auto 0;
    border: 2px solid #2ecc71;
    text-align: center;
    width: 100px;
    padding: 10px 0;
    border-radius: 20px;
    color: #fff;
    cursor: pointer;
}

input[type="text"]:focus,
input[type="text"]:hover,
input[type="password"]:focus,
input[type="password"]:hover {
    width: 300px;
    border-color: #2ecc71;
}

input[type="submit"]:hover {
    background-color: #2ecc71;
}

/* 登录错误提示字段 */
p {
    color: #d26f5c;
    font-weight: 100;
    font-size: xx-small;
    position: absolute;
    bottom: 2px;
    left: 38%;
    opacity: 0;/*默认隐藏*/
}

/* 注册跳转 */
.register {
    position: absolute;
    bottom: -10%;
    right: -5%;
    background-color: #6d5ed4;
    font-size: xx-small;

    padding-top: 10px;
    height: 30px;
    width: 50%;
    border-radius: 5px 0 0 5px;
    z-index: -1;
}
/* 书签末尾 */
.register::after {
    content: "";
    position: absolute;
    left: 100%;
    top: 0;
    border-color: #6d5ed4 transparent #6d5ed4 #6d5ed4;
    border-width: 20px 20px 20px 0;
    border-style: solid;
}

.register a {
    color: #fff;
    text-decoration: none;
    display: block;
    height: 100%;
}